<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<label>账号：</label><span class="accountspan">全部</span>
<c:forEach items="${alist}" var="a" varStatus="vs">
	<span class="accountspan">${a.name}</span>
</c:forEach>

<script type="text/javascript">
	var activeClass1 = $('.accountspan.active');

	$(function() {
		
		$(".accountspan").click(function() {
			if (activeClass1 != null) {
				activeClass1.removeClass('active');
			}
			$(this).addClass('active');
			activeClass1 = $(this);
		})
	});
</script>


